import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { UserlistComponent } from './userlist/userlist.component';
import { PartnerlistComponent } from './partnerlist/partnerlist.component';
import { RestaurantlistComponent } from './restaurantlist/restaurantlist.component';
import { MerchantdisheComponent } from './merchantdishe/merchantdishe.component';
import { BandambassadorComponent } from './bandambassador/bandambassador.component';
import { MerchantapplyComponent } from './merchantapply/merchantapply.component';
import { MerchantinfoComponent } from './merchantinfo/merchantinfo.component';
import { MerchantscashComponent } from './merchantscash/merchantscash.component';
import { MerchantorderrecordComponent } from './merchantorderrecord/merchantorderrecord.component';
import { MerchantwineComponent } from './merchantwine/merchantwine.component';
import { AgentmerchantlistComponent } from './agentmerchantlist/agentmerchantlist.component';
import { CashmanageinfoComponent } from './cashmanageinfo/cashmanageinfo.component';
import { AgentcashinfoComponent } from './agentcashinfo/agentcashinfo.component';
import { AgentmerchantwineComponent } from './agentmerchantwine/agentmerchantwine.component';
import { AgentpersoninfoComponent } from './agentpersoninfo/agentpersoninfo.component';
import { AgentmerchantwinemanageComponent } from './agentmerchantwinemanage/agentmerchantwinemanage.component';
import { AgentcustomerlistComponent } from './agentcustomerlist/agentcustomerlist.component';
import { AgentsellterComponent } from './agentsellter/agentsellter.component';
import { MerchantComponent } from './merchant/merchant.component';
import { UerwinhistoryComponent } from './uerwinhistory/uerwinhistory.component';
import { PaysetComponent } from './payset/payset.component';

/** 管理页面 */
const routes: Routes = [
    { path: 'userlist', component: UserlistComponent, data: { breadcrumb: '用户管理' } }, // 用户管理
    { path: 'merchantlist', component: RestaurantlistComponent, data: { breadcrumb: '餐厅管理' } }, // 餐厅管理
    { path: 'partnerlist', component: PartnerlistComponent, data: { breadcrumb: '合伙人管理' } }, // 合伙人管理
    { path: 'merchantdishe', component: MerchantdisheComponent, data: { breadcrumb: '菜品管理' } }, // 菜品管理
    { path: 'maruserlist/:id', component: UserlistComponent, data: { breadcrumb: '查看用户' } }, // 用户管理
    { path: 'brandambassador', component: BandambassadorComponent, data: { breadcrumb: '品牌大使申请记录' } },
    { path: 'merchantapply', component: MerchantapplyComponent, data: { breadcrumb: '餐厅入驻申请记录' } },
    { path: 'merchantinfo', component: MerchantinfoComponent, data: { breadcrumb: '餐厅信息管理' } },
    { path: 'MerchantCrshRecords', component: MerchantscashComponent, data: { breadcrumb: '餐厅提现记录' } },
    { path: 'cashmanageinfo', component: MerchantscashComponent, data: { breadcrumb: '餐厅提现记录' } },
    { path: 'merchantorderrecord', component: MerchantorderrecordComponent, data: { breadcrumb: '餐厅订单记录' } },
    { path: 'merchantwine', component: MerchantwineComponent, data: { breadcrumb: '餐厅酒水管理' } },
    { path: 'agentmerchantlist', component: AgentmerchantlistComponent, data: { breadcrumb: '品牌大使餐厅管理' } },
    { path: 'MerchantCashAudit', component: CashmanageinfoComponent, data: { breadcrumb: '餐厅商户提现审核' } },
    { path: 'BanderCashAudit', component: AgentcashinfoComponent, data: { breadcrumb: '品牌大使提现审核' } },
    { path: 'agentmerchantwinemanage/:id', component: AgentmerchantwineComponent, data: { breadcrumb: '商户酒水管理' } },
    { path: 'agentpersoninfo', component: AgentpersoninfoComponent, data: { breadcrumb: '品牌大使个人信息' } },
    { path: 'agentmerchantwinemanage', component: AgentmerchantwinemanageComponent, data: { breadcrumb: '品牌大使审核商户酒水管理' } },
    { path: 'agentcustomerlist', component: AgentcustomerlistComponent, data: { breadcrumb: '品牌大使招募会员管理' } },
    { path: 'agentsellter', component: AgentsellterComponent, data: { breadcrumb: '品牌大使提现管理' } },
    { path: 'merchant/:id', component: MerchantComponent, data: { breadcrumb: '关联餐厅' } },
    { path: 'userwinhistory', component: UerwinhistoryComponent, data: { breadcrumb: '邀请奖励记录' } },
    { path: 'userwinhistory/:id', component: UerwinhistoryComponent, data: { breadcrumb: '邀请奖励记录' } },

    { path: 'payset/:id', component: PaysetComponent, data: { breadcrumb: '微信提现账号设置' } }



];

@NgModule({
    imports: [RouterModule.forRoot([{ path: 'manage', children: routes }], { useHash: true })],
    exports: [RouterModule]
})

export class ManageRouting {

}
